//
//  ConsoleViewController.h
//  FreeSWITCH_Console
//
//  Created by Christopher Danielson on 4/6/09.
//  Copyright 2009 MaxPowerSoft, LLC. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "AsyncSocket.h"
#import "UserSetting.h"
#import "ParentViewController.h"

@interface ConsoleViewController : ParentViewController <UITextFieldDelegate, UITextViewDelegate> {
	AsyncSocket *as;
	id _delegate;
	IBOutlet UITextView *consoleTextView;
	IBOutlet UITextField *consoleInputField;
	UserSetting *userSetting;
	NSMutableString *fsCmd;
	NSTimer *timer;
}
@property (nonatomic, retain) AsyncSocket *as;
@property (nonatomic, retain) id _delegate;
@property (nonatomic, retain) IBOutlet UITextView *consoleTextView;
@property (nonatomic, retain) IBOutlet UITextField *consoleInputField;
@property (nonatomic, retain) UserSetting *userSetting;
@property (nonatomic, retain) NSMutableString *fsCmd;
@property (nonatomic, retain) NSTimer *timer;

- (void) setUserSetting:(UserSetting *)usrSet;

- (void) setDelegate:(id) delegate;
- (id) delegate;
- (void) timerCallback: (NSTimer *)timer;
- (void) start;
- (void) stop;
- (BOOL) connectedToNetwork;

@end
